<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>湖南省自来水公司营销管理信息系统</title>

    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/text.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/form.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/buttons.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/grid.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/layout.css" type="text/css" media="screen" title="no title" />

    <link rel="stylesheet" href="../../../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
    <link rel="stylesheet" href="../../../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />

    <link rel="stylesheet" href="../../../css/custom.css" type="text/css" media="screen" title="no title">

</head>

<body>

<div id="wrapper">



    <#include "../common/header.ftl"/>


    <div id="content" class="xgrid">


        <div class="x12">




            <div id="facebox_delete" style="display: none">
                <div style="height:80px;text-align:center;padding-top:50px;">
                    确认删除吗？
                </div>

                <div class="dialogbutton center">
                    <a class="btn" href="javascript:closeDialog();" style="width:60px;">是</a>
                    <a class="btn btn-grey" href="javascript:closeDialog();" style="width:60px;">否</a>
                </div>
            </div>

            <h2>活动内容设置</h2>

            <p><button class="btn-icon btn-plus" onClick="location='/wx/wx_huo_add';"><span></span>添加特惠活动</button></p>

            <table class="data display">
                <thead>
                <tr>
                    <th>活动ID</th>
                    <th>活动名称</th>
                    <th>活动到期时间</th>
                    <th>活动内容</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <#list wxhuo as item>
                <tr class="odd gradeX" >
                    <td>${item.id}</td>
                    <td>${item.huoname}</td>
                    <td>${item.huoshi}</td>
                   <td>
<#if item.huonei?length gt 33>
    ${item.huonei?substring(0,30)}
<#else>${item.huonei!}
</#if>
                   </td>
                    <td class="center">
                        <button class="btn-icon btn-small btn-blue btn-star" onClick="location='/wx/wx_huo_update/${item.id}';"><span></span>修改</button>
                        <a href="/wx/sys_del/${item.id}"  class="btn-icon btn-small btn-red btn-cross"
                           onclick="javascript:return del();"><span></span>删除</a>
                    </td>
                </tr>
                </#list>
                </tbody>
            </table>

        </div> <!-- .x12 -->

    </div> <!-- #content -->

    <div id="footer">
        <div class="content_pad">
            <p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>.   技术支持 <a href="#">华瑞教育</a>.</p>
        </div> <!-- .content_pad -->
    </div> <!-- #footer -->

</div> <!-- #wrapper -->

<script src="../../../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../../../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../../../js/misc/excanvas.min.js"></script>
<script src="../../../js/jquery/facebox.js"></script>
<script src="../../../js/jquery/jquery.visualize.js"></script>
<script src="../../../js/jquery/jquery.dataTables.min.js"></script>
<script src="../../../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../../../js/jquery/jquery.uniform.min.js"></script>
<script src="../../../js/jquery/jquery.placeholder.min.js"></script>

<script src="../../../js/widgets.js"></script>
<script src="../../../js/dashboard.js"></script>

<script type="text/javascript">

    $(document).ready ( function ()
    {
        Dashboard.init ();
    });
    function del() {
        var msg = "您真的确定要删除吗？\n\n请确认！";
        if (confirm(msg)==true){
            return true;
        }else{
            return false;
        }
    }
</script>

</body>

</html>